package com.sskjdata.cg.dto;

/**
 * @Descirption 自定义状态枚举类
 * @Author Jason
 * @Date 2019/11/30/
 */
public enum  ResponseCodeEnum {
    SUCCESS("200","成功"),
    UNAUTHORIZED("302","未登录"),
    USERNAME_OR_PASSWORD_NOT_TRUE("303","用户名或密码错误!"),
    FAILURE("404","未获取到资源"),
    ERROR("500","抱歉，出现了未知错误"),
    UPDATE_PWD_ERROR("503","原密码错误,修改失败"),
    PARAMETER_ERROR("600","参数错误"),
    VERIFY_CODE_ERROR("700","验证码错误"),
    AUTH_LOGIN_IS_REQUIRED("1000","请登录")
    ;


    private ResponseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }

}
